<?php
class FrieWidget extends Widget{
    public function render($data){
        $limit=$data['limit'];
        $data['blog']=M('blog')->limit($limit)->select();
        
        return $this->renderFile('',$data);

    }

}


?>